package design_pattern;

/**
 * @ClassName TestSeason
 * @Deacription TODO
 * @Author 谢忠辉
 * @Date 2021/3/18 0018 15:30
 **/
public class TestSeason {
    public static void main( String []args){
        Season firstSeason = Season.getInstance2("春季");
        System.out.println(firstSeason);
        Season secondSeason = Season.getInstance2("夏季");
        System.out.println(secondSeason);
        Season thirdSeason = Season.getInstance2("winter");
        System.out.println(thirdSeason);
        Season fourthSeason = Season.getInstance("冬季");
        System.out.println(fourthSeason);
    }
}
